﻿<%@ Page Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeFile="ManageNews.aspx.cs" Inherits="admin_ManageNews" Title="News Management" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
<div class="sectiontitle">Manage Articles</div>
   <p></p>
   <ul style="list-style-type: square">
      <li><asp:HyperLink runat="server" ID="lnkAddNewArticle" NavigateUrl="AddEditNews.aspx">Add New Article</asp:HyperLink></li>
   </ul>
   <p></p>
   
   <div id="home" class="fullpage">
        <table border="0" cellpadding="0" cellspacing="0" Width="100%" id="photo">
                <tr valign="bottom">
                    <td class="caption">
				        <asp:image id="logo" runat="server" ImageUrl="~/images/mark.gif"/>
                        <asp:Label ID="Label3" runat="server" Text="Latest News"></asp:Label>
                    </td>
				</tr>
				<tr>
					<td colspan="2">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
                            DataKeyNames="ID" onrowdeleting="GridView1_RowDeleting" ShowFooter="True">
                            <Columns>
                                <asp:CommandField SelectText="" ShowCancelButton="False" ShowEditButton="True">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:CommandField>
                                <asp:BoundField DataField="Title" HeaderText="Title">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Author" HeaderText="Author">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Content" HeaderText="Content">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:CommandField ShowDeleteButton="True">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:CommandField>
                            </Columns>
                            <EmptyDataTemplate>
                                <asp:Label ID="Label2" runat="server" Text="&#27809;&#26377;&#25214;&#21040;&#25968;&#25454;&#65281;" ForeColor="Red"></asp:Label>
                            </EmptyDataTemplate>
                            <PagerSettings Position="TopAndBottom" />
                        </asp:GridView>
					</td>
				</tr>
			</table>
    </div>
    
</asp:Content>

